import request from '@/utils/request'

// 牌号及化学成分要求 API
export const ChemicalRequirApi = {
  // 获得牌号及化学成分要求明细分页
  getChemicalRequirDetailPage: function(params) {
    return request({
      method: 'get',
      url: '/qm/chemical-requir/chemical-requir-detail/page',
      params: params
    })
  },

  // 获得牌号及化学成分要求明细列表
  getChemicalRequirDetailList: function(chemrequirId) {
    return request({
      method: 'get',
      url: '/qm/chemical-requir/chemical-requir-detail/list-by-chemrequir-id?chemrequirId=' + chemrequirId
    })
  },

  // 查询牌号及化学成分要求分页
  getChemicalRequirPage: function(params) {
    return request({
      method: 'get',
      url: '/qm/chemical-requir/page',
      params: params
    })
  },

  // 查询牌号及化学成分要求详情
  getChemicalRequir: function(id) {
    return request({
      method: 'get',
      url: '/qm/chemical-requir/get?id=' + id
    })
  }
}

export default ChemicalRequirApi

